Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate unit tests to GitHub #175

Open
wants to merge 62 commits into
base: main
Choose a base branch
from
Open

Migrate unit tests to GitHub #175

wants to merge 62 commits into from

Conversation

WeinaJi
Copy link
Collaborator

@WeinaJi WeinaJi commented Jun 3, 2024

Context

This PR migrates the unit test pipeline from GitLab to GitHub actions. Based on the existing simulation_test.yml, it adds the model building for neocortex and neocortex-mutiscale models, and launch the unit tests via pytest. For testing data, sub circuits of v5_sonata, v5_sonata + gap junctions, sscx-v7-plasticity are extracted by brainbuilder from the original circuits in gpfs and are stored locally.

Scope

  • Download neocortex mods from github repo
  • test-unit
  • test-integration
  • test-integration-e2e
  • test-scientific
  • test-scientific-ngv

Doc builds are tested on ReadTheDocs side for all PRs.

Testing

Currently the follow tests are skipped:

Review

  • PR description is complete
  • Coding style (imports, function length, New functions, classes or files) are good
  • Unit/Scientific test added
  • Updated Readme, in-code, developer documentation

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@WeinaJi WeinaJi changed the title download neocortex mods from github repo Migrate unit tests to GitHub Sep 11, 2024
Copy link
Member

@matz-e matz-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very impressive to get the whole testing done in 8 minutes!

I'm just wondering if we could factor the docs out into a separate workflow (in the future)

.github/workflows/simulation_test.yml Outdated Show resolved Hide resolved
@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@jorblancoa jorblancoa marked this pull request as ready for review October 2, 2024 14:41
@bbpbuildbot

This comment has been minimized.

matz-e
matz-e previously approved these changes Oct 2, 2024
Copy link
Member

@matz-e matz-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

tests/simulations/ngv/README.rst Outdated Show resolved Hide resolved
@@ -14,8 +14,6 @@ def test_input_resistance():
# create Node from config
GlobalConfig.verbosity = LogLevel.VERBOSE
n = Node(str(CONFIG_FILE))
# use edges file w/o plasticity
SimConfig.extra_circuits["All"]["nrnPath"] = EDGES_FILE + ":default"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to restrict the population anymore?

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot
Copy link

Comment on lines +240 to +243
pip install flake8 flake8-pyproject

- name: Run flake8
run: flake8 .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you run flake independently on the sources only with no installation? As in separate job with separate status?

Also, ruff may be a better all-in-one linter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants